package com.paypalpay.service.impl;

import com.paypalpay.entity.common.Partner;
import com.paypalpay.mapper.PartnerMapper;
import com.paypalpay.service.PartnerService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;

@Service
@Transactional
public class PartnerServiceImpl implements PartnerService {
    @Resource
    PartnerMapper partnerMapper;

    @Override
    public int findPartnerCodeEixtOrNot(String partnerCode) {
        return partnerMapper.findPartnerCodeEixtOrNot(partnerCode);
    }

    @Override
    public void insertPartner(Partner partner) {
        partnerMapper.insertPartner(partner);
    }

    @Override
    public String findSecretByPartnerCode(String partnerCode) {
        return partnerMapper.findSecretByPartnerCode(partnerCode);
    }
}
